/*
 * @Author: 严晗 823841034@qq.com
 * @Date: 2023-10-08 14:30:06
 * @LastEditors: 严晗 823841034@qq.com
 * @LastEditTime: 2023-10-19 13:42:28
 * @FilePath: /yike-admin/Users/yanhan/vite-project/src/router/basic.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Layout from '~/layout/index.vue'
import Index from '~/pages/index.vue'
import NotFound from '~/pages/error/404.vue'
import Login from '~/pages/login/index.vue'

// 基础路由
export const routes = [
	{
		path: '/',
		name: 'layout', // 定义name参数，方便添加动态路由
		component: Layout,
	},
	{
		path: '/:pathMatch(.*)*',
		name: 'notfound',
		component: NotFound,
	},
	{
		path: '/login',
		name: 'login',
		component: Login,
	},
]

// 动态路由
export const asyncRoutes = [
	{
		// 默认首页路由
		path: '/',
		name: '/',
		component: Index,
	},
]
